from rest_framework.routers import DefaultRouter

from django.conf.urls import url,include

from .views import AreaViewSet

router=DefaultRouter()

router.register(r'infos',AreaViewSet,base_name='area')

urlpatterns=[
    # url(r'^',include(router.urls))
]

urlpatterns+=router.urls

from .views import AddressViewSet
from rest_framework.routers import DefaultRouter
router=DefaultRouter()
router.register(r'addresses',AddressViewSet,base_name='address')
urlpatterns+=router.urls